<?php

class Index extends CI_Controller {

    function __construct() {
        parent::__construct();
    }

    public function index() {
        echo 'wecome ci';
    }

    public function login() {
        if ($this->input->post()) {
            $html = <<<EOT
<html>
<head>
<meta http-equiv="refresh" content="5;URL=/admin/">
</head>  
</html>
EOT;
        } else {
            $this->load->view( "login" );
        }
    }

}

?>
